package core
{
	import flash.display.Sprite;
	import flash.system.Security;
	
	import org.ais.event.TEvent;
	import org.ais.system.Ais;

	public class Main extends Sprite
	{
		public function Main()
		{
			try {
				Security.allowDomain("*");
				Security.allowInsecureDomain("*");
			}
			catch (error:*) {}
		}
		
		public function connect(im:*):void
		{
			var url:String = Ais.IMain.loaderInfo.parameters["url"];
			if (loaderInfo.parameters["url"]) url = loaderInfo.parameters["url"];
			TEvent.trigger("IPLAYER_0", "PLAY", url);
			Ais.IMain.Swf.remove(Ais.IMain.Swf.hasSwf("swf", parent));
			url = null;
			im = null;
		}
		
	}
}